package wzc.design_pattern.construction.decorator;

/**
 * @Author 那和不是个啥
 * @Date 2025/7/20
 * @Description
 */

public class SugarDecorator extends CoffeeDecorator {
    public SugarDecorator(Coffee coffee) {
        super(coffee);
    }

    @Override
    public String getDescription() {
        return super.getDescription() + " + 糖";
    }

    @Override
    public double cost() {
        return super.cost() + 2.0;
    }
}
